﻿package javase.socket.client;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;
import java.net.UnknownHostException;

public class TestClient {

	public static void main(String[] args) throws UnknownHostException, IOException {
		Socket s1=new Socket("localhost",8888);
		InputStream is=s1.getInputStream();
		DataInputStream dis=new DataInputStream(is);
		System.out.println(dis.readUTF());
		dis.close();
		s1.close();
	}
}
